package cn.felord.jacksons.entity;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;

/**
 * @author felord.cn
 * @since 1.0.8.RELEASE
 */

@Getter
public class DescriptionUser {
    private final String name;
    private final Integer age;

    @JsonCreator
    public DescriptionUser(@JsonProperty("name") String name, @JsonProperty("age") Integer age) {
        this.name = name;
        this.age = age;
    }
}
